package com.ruoyi.fs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fs.mapper.FsCaseProgressFileMapper;
import com.ruoyi.fs.domain.FsCaseProgressFile;
import com.ruoyi.fs.service.IFsCaseProgressFileService;

/**
 * 案件进展文件Service业务层处理
 * 
 * @author hero
 * @date 2024-11-27
 */
@Service
public class FsCaseProgressFileServiceImpl implements IFsCaseProgressFileService 
{
    @Autowired
    private FsCaseProgressFileMapper fsCaseProgressFileMapper;

    /**
     * 查询案件进展文件
     * 
     * @param id 案件进展文件主键
     * @return 案件进展文件
     */
    @Override
    public FsCaseProgressFile selectFsCaseProgressFileById(Long id)
    {
        return fsCaseProgressFileMapper.selectFsCaseProgressFileById(id);
    }

    /**
     * 查询案件进展文件列表
     * 
     * @param fsCaseProgressFile 案件进展文件
     * @return 案件进展文件
     */
    @Override
    public List<FsCaseProgressFile> selectFsCaseProgressFileList(FsCaseProgressFile fsCaseProgressFile)
    {
        return fsCaseProgressFileMapper.selectFsCaseProgressFileList(fsCaseProgressFile);
    }

    /**
     * 新增案件进展文件
     * 
     * @param fsCaseProgressFile 案件进展文件
     * @return 结果
     */
    @Override
    public int insertFsCaseProgressFile(FsCaseProgressFile fsCaseProgressFile)
    {
        return fsCaseProgressFileMapper.insertFsCaseProgressFile(fsCaseProgressFile);
    }

    /**
     * 修改案件进展文件
     * 
     * @param fsCaseProgressFile 案件进展文件
     * @return 结果
     */
    @Override
    public int updateFsCaseProgressFile(FsCaseProgressFile fsCaseProgressFile)
    {
        return fsCaseProgressFileMapper.updateFsCaseProgressFile(fsCaseProgressFile);
    }

    /**
     * 批量删除案件进展文件
     * 
     * @param ids 需要删除的案件进展文件主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseProgressFileByIds(Long[] ids)
    {
        return fsCaseProgressFileMapper.deleteFsCaseProgressFileByIds(ids);
    }

    /**
     * 删除案件进展文件信息
     * 
     * @param id 案件进展文件主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseProgressFileById(Long id)
    {
        return fsCaseProgressFileMapper.deleteFsCaseProgressFileById(id);
    }
}
